//
//  BMAnnotationView.h
//  BicycleMap
//
//  Created by vedon on 5/18/16.
//  Copyright © 2016 Qianqian. All rights reserved.
//

#import <BaiduMapAPI_Map/BMKMapComponent.h>

@class BMAnnotationView;
@class BMPointAnnotation;

@protocol BMAnnotationViewDelegate <NSObject>

- (void)didTapNavButton:(CLLocationCoordinate2D)location;

@end

@interface BMAnnotationView : BMKAnnotationView
@property (weak,nonatomic) id<BMAnnotationViewDelegate> delegate;

- (instancetype)initWithAnnotation:(id<BMKAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier avatarUrl:(NSString *)avatarUrl;

- (void)configureWithAnnotation:(BMPointAnnotation *)annotation;

@end
